import axios from '@/common/http.js'

// 登录方法
export function login(data) {
  return axios({
    url: '/login',
    header: {
      isToken: false,
      repeatSubmit: false,
      userType: 'spine'
    },
    method: 'post',
    data: data
  })
}

// 退出方法
export function logout() {
  return axios({
    url: '/logout',
    method: 'post'
  })
}

//获取用户信息
export function getInfo() {
    return axios({
        header: {
          userType: 'spine'
        },
        url: '/info',
        method: 'get'
    })
}